window.onload = async function () {
    if (document.querySelector("div > ul > li:nth-child(2) > div > ul > li.active > a").getAttribute("data-size") != '200'){
        document.querySelector('div > ul > li:nth-child(2) > div > ul > li:nth-child(12) > a').click();
    }
    let create_report_btn = document.createElement("span");
    create_report_btn.innerText = '生成周报'
    create_report_btn.classList = "btn btn-primary"
    $(create_report_btn).insertBefore($("#batchCreate"));
    let api = new ZentaoApi();
    await api.preload()
    create_report_btn.addEventListener('click', function (event) {
        api.download();
    }, false)
}

